
#docker rmi -f docker pull garethflowers/svn-server:latest
docker pull docker pull garethflowers/svn-server:latest
rm -rf /cardone/docker/images/garethflowers/svn-server_latest.tar
mkdir -p /cardone/docker/images/garethflowers
docker save docker pull garethflowers/svn-server:latest > /cardone/docker/images/garethflowers/svn-server_latest.tar
#docker load < /cardone/docker/images/garethflowers/svn-server_latest.tar



docker node update --label-add cardone-svn-server_svn-server=true cardone-01-01

docker stack rm cardone-svn-server

docker stack deploy -c /cardone/middlewares/svn-server/prod.yml cardone-svn-server

for i in {1..10}  
do  
sleep $i

docker stack ps cardone-svn-server

docker service ls
done

docker service logs cardone-svn-server_svn-server -f --tail 300


docker exec -it 930fb2298472 svnadmin create cardone

docker exec -it 930fb2298472 svnadmin create qb



Subversion authorization file： /etc/subversion/subversion-access-control
User authentication file (SVNUserFile)：/etc/subversion/passwd
Parent directory of the repositories (SVNParentPath)：/home/svn
Subversion client executable：/usr/bin/svn
Subversion admin executable：/usr/bin/svnadmin


docker exec -t a027aa795ca5 htpasswd -b /etc/subversion/passwd cardone cardone-123

docker exec -it a027aa795ca5 vi /etc/apache2/httpd.conf
